using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._SpatialAnalystTools._Surface
{
    /// <summary>
    /// <para>Contour List</para>
    /// <para>Creates a feature class of selected contour values from a raster surface.</para>
    /// <para>从栅格表面创建所选等值线值的要素类。</para>
    /// </summary>    
    [DisplayName("Contour List")]
    public class ContourList : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ContourList()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_raster">
        /// <para>Input raster</para>
        /// <para>The input surface raster.</para>
        /// <para>输入表面栅格。</para>
        /// </param>
        /// <param name="_out_polyline_features">
        /// <para>Output polyline features</para>
        /// <para>The output contour polyline features.</para>
        /// <para>输出轮廓折线要素。</para>
        /// </param>
        /// <param name="_contour_values">
        /// <para>Contour values</para>
        /// <para>List of z-values for which to create contours.</para>
        /// <para>要为其创建等值线的 z 值列表。</para>
        /// </param>
        public ContourList(object _in_raster, object _out_polyline_features, List<object> _contour_values)
        {
            this._in_raster = _in_raster;
            this._out_polyline_features = _out_polyline_features;
            this._contour_values = _contour_values;
        }
        public override string ToolboxName => "Spatial Analyst Tools";

        public override string ToolName => "Contour List";

        public override string CallName => "sa.ContourList";

        public override List<string> AcceptEnvironments => ["MDomain", "MResolution", "MTolerance", "XYDomain", "ZDomain", "ZResolution", "ZTolerance", "autoCommit", "cellSize", "cellSizeProjectionMethod", "configKeyword", "extent", "geographicTransformations", "maintainSpatialIndex", "outputCoordinateSystem", "outputMFlag", "outputZFlag", "outputZValue", "parallelProcessingFactor", "scratchWorkspace", "snapRaster", "workspace"];

        public override object[] ParameterInfo => [_in_raster, _out_polyline_features, _contour_values];

        /// <summary>
        /// <para>Input raster</para>
        /// <para>The input surface raster.</para>
        /// <para>输入表面栅格。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_raster { get; set; }


        /// <summary>
        /// <para>Output polyline features</para>
        /// <para>The output contour polyline features.</para>
        /// <para>输出轮廓折线要素。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output polyline features")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_polyline_features { get; set; }


        /// <summary>
        /// <para>Contour values</para>
        /// <para>List of z-values for which to create contours.</para>
        /// <para>要为其创建等值线的 z 值列表。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Contour values")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _contour_values { get; set; }


        public ContourList SetEnv(object MDomain = null, object MResolution = null, object MTolerance = null, object XYDomain = null, object ZDomain = null, object ZResolution = null, object ZTolerance = null, int? autoCommit = null, object cellSize = null, object configKeyword = null, object extent = null, object geographicTransformations = null, bool? maintainSpatialIndex = null, object outputCoordinateSystem = null, object outputMFlag = null, object outputZFlag = null, object outputZValue = null, object parallelProcessingFactor = null, object scratchWorkspace = null, object snapRaster = null, object workspace = null)
        {
            base.SetEnv(MDomain: MDomain, MResolution: MResolution, MTolerance: MTolerance, XYDomain: XYDomain, ZDomain: ZDomain, ZResolution: ZResolution, ZTolerance: ZTolerance, autoCommit: autoCommit, cellSize: cellSize, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, maintainSpatialIndex: maintainSpatialIndex, outputCoordinateSystem: outputCoordinateSystem, outputMFlag: outputMFlag, outputZFlag: outputZFlag, outputZValue: outputZValue, parallelProcessingFactor: parallelProcessingFactor, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, workspace: workspace);
            return this;
        }

    }

}